<?php $this->placeholder('onReady')->captureStart() ?>
	$("#<?php echo $this->id_tablesorter?>").tablesorter(); 

    /*
    $('tr.fila').toggle(function() {
       $('tr.fila').removeClass('ui-state-highlight')
       $('tr.nofila').hide();
       $('<tr class="nofila"><td colspan="6" class="ui-state-focus">fgfg</td></tr>').insertAfter($(this));
       $(this).addClass('ui-state-highlight')
    }, function() {

       $(this).removeClass('ui-state-highlight')
       $(this).next().hide()
    });
*/
<?php $this->placeholder('onReady')->captureEnd() ?>

<?php
$style = <<<STYLE

STYLE;

$script = <<<SCRIPT

SCRIPT;

if($style)$this->headStyle()->appendStyle($style);
if($script)$this->headScript()->appendScript($script);
?>


<?php echo $this->anchor($this->controllerName.'/insertar','Añadir Cliente',array('class'=>'utiladd'));?>


<table id="<?= $this->id_tablesorter?>" width="100%" class="tablesorter"> 
<?=$this->partial('snnipet/caption.phtml',array('c'=>count($this->rows)))?>
	<thead>
		<tr>
			<th><?php echo $this->translate('Código');?></th> 
            <th><?php echo $this->translate('Nombre');?></th> 
    		<th><?php echo $this->translate('Razon Social');?></th> 
    		<th><?php echo $this->translate('CIF');?></th> 
    		<th><?php echo $this->translate('Domicilio');?></th>
            <th width="140px"><?php echo $this->translate('PEP');?></th>
           	<th class="configure" ></th> 
    	</tr>
    </thead>
    <tbody>
        <?php echo $this->partialLoop($this->controllerName.'/fila.phtml', (array)$this->rows); ?>	
    </tbody>
</table>

